﻿//======================================================
//==     (c)2008 aspxcms inc by NeTCMS v1.0              ==
//==          Forum:bbs.aspxcms.com                   ==
//==         Website:www.aspxcms.com                  ==
//======================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using NetCMS.Content;
using NetCMS.Content.Common;

public partial class manage_Contribution_Constr_Return : NetCMS.Web.UI.ManagePage
{
    Constr con = new Constr();
    protected void Page_Load(object sender, EventArgs e)
    {
        
        Response.CacheControl = "no-cache";
        if (!IsPostBack)
        {
            string ConID =Request.QueryString["ConID"];
            DataTable dt = con.sel_ConstrInfo(ConID,1);
            int ispass = int.Parse(dt.Rows[0]["ispass"].ToString());
            if (ispass == 1)
            {
                PageError("抱歉此稿已退不能再次退稿","");
            }
            this.Title.Text=dt.Rows[0]["Title"].ToString();
        }

    }
    protected void But_Click(object sender, EventArgs e)
    {
        rootPublic rd = new rootPublic();
        string ConIDs = Request.QueryString["ConID"];
        string passcontent = Request.Form["passcontent"].ToString();
        if (con.update_UserInfos(passcontent, ConIDs,1) == 0)
        {
            rd.SaveUserAdminLogs(1, 1, UserNum, "退稿", "操作失败");
            PageError("退稿失败", "");
        }
        else 
        {
            rd.SaveUserAdminLogs(1, 1, UserNum, "退稿", "操作成功");
            PageRight("退稿成功", "Constr_List.aspx");
        }
    }
}
